Other Functions
The following functions are available globally.
-
Returns the appropriate
mediium
AlertLevel
distance for a givenMBDirectionsProfileIdentifier
.Declaration
Swift
public func RouteControllerMinimumDistanceForMediumAlert(identifier: MBDirectionsProfileIdentifier) -> CLLocationDistance
-
Returns a the appropriate
high
AlertLevel
distance for a givenMBDirectionsProfileIdentifier
.Declaration
Swift
public func RouteControllerMinimumDistanceForHighAlert(identifier: MBDirectionsProfileIdentifier) -> CLLocationDistance
-
Returns a normalized number given min and max bounds.
Declaration
Swift
public func wrap(_ value: Double, min minValue: Double, max maxValue: Double) -> Double